package com.shuhe.thread;

import com.shuhe.handler.FullTextHandler;

import java.util.Calendar;

public class FullTextThread implements Runnable {
    private String searchStr;

    public FullTextThread(String searchStr) {
        this.searchStr = searchStr;
    }

    public void run() {
        try{
            long beginTime = Calendar.getInstance().getTimeInMillis();
            FullTextHandler.analysisSearchvalueByAi(searchStr);
            long endTime = Calendar.getInstance().getTimeInMillis();

            System.out.println(endTime - beginTime);
        }catch (Exception ex){
            ex.printStackTrace();
        }


    }
}
